<html>
	<head>
		<title>Gestione Tariffe per Biglietti Singoli</title>
		<meta name="author" content="Morris Antonello" />
		<link rel="stylesheet" href="css/amm_index.css" type="text/css"/>
		<link rel="stylesheet" href="css/amm_bigliettosingolo.css" type="text/css"/>
		<script type="text/javascript" src="jQuery/jquery-1.9.1.min.js"></script>
		<script type="text/javascript" src="js/amm_bigliettosingolo.js"></script>

		<script type="text/javascript">
			<% if((session.getAttribute("utente")==null) || !((Boolean)(session.getAttribute("amministrativo")))) out.print("window.location=\"index.jsp\";"); %>
		</script>

	</head>
	<body>
		<div id="main">
			<jsp:include page="amm_menu.jsp"/>
			
			<div id="main-div">
				
				<h2>Gestione delle Tariffe per Biglietti Singoli: </h2>
				
				<div id="menu-bigliettisingoli">
					<form id="formTipoAzione">
						<p>Operazioni consentite</p>
						<select id="sceltaTipoAzione" name="tipoAzione">
							<option value="crea">Inserisci</option>
							<option value="modifica">Modifica</option>
							<option value="rimuovi">Rimuovi</option>
						</select>
					</form>
				</div>
				<div id="form-bigliettisingoli">
				
					<div id="messaggi-utente"></div><br>
					
					<!-- Form di creazione nuova tariffa per biglietto singolo -->
					<form id="formCompilazione" action="" onsubmit="return validateCreazione()">
						<table class="form-table" id="tableCompilazione">
							<tr>
								<td><label for="nomeBigl">Nome</label></td>
								<td><input type="text" id="nomeBiglComp" name="nomeBigl" onBlur="checkNome(this)"></input></td>
							</tr>
							<tr>
								<td><label for="costoBigl">Costo *</label></td>
								<td><input type="text" id="costoBiglComp" name="costoBigl"onBlur="checkCosto(this)"></input></td>
							</tr>
							<tr>
								<td><label for="in3DBigl">In 3D *</label></td>
								<td><input type="checkbox" id="in3DBiglComp" name="in3DBigl"></td>
							</tr>
							<tr>
								<td colspan="2"><p>* Campi obbligatori</p></td>
							</tr>
							<tr>
								<td colspan="2" class="center">
									<input id="submitCrea" type="submit" value="Inserisci"></input>
								</td>
							</tr>
						</table>
					</form>
					
					
					<!-- Form di modifica tariffa per biglietto singolo -->
					<form id="formModifica" action="" onsubmit="return validateModifica()">
						<table class="form-table">
							<tr>
								<td><label for="nomeBigl">Nome</label></td>
								<td><select id="sceltaNomeBiglMod" name="nomeBigl" onChange="trovaDatiBiglMod(this)">
									<option value="scegliNome" selected="selected">Scegli l'elemento da modificare</option>
									<jsp:include page="../admin/getNomiTariffe"/>
								</select></td>
							</tr>
							<tr>
								<td><label for="costoBigl">Costo</label></td>
								<td><input type="text" id="costoBiglMod" name="costoBigl" onBlur="checkCosto(this)"></input></td>
							</tr>
							<tr>
								<td><label for="in3DBigl">In 3D</label></td>
								<td><input type="checkbox" id="in3DBiglMod" name="in3DBigl" ></td>
							</tr>
							<tr>
								<td colspan="2" class="center">
									<input id="submitModifica" type="submit" value="Modifica" disabled="disabled"></input>
								</td>
							</tr>
						</table>
					</form>
					
					<!-- Form di cancellazione tariffa per biglietto singolo -->
					<form id="formCancellazione" action="" onsubmit="return validateCancellazione()">
						<table class="form-table">
							<tr>
								<td><label for="nomeBigl">Nome</label></td>
								<td><select id="sceltaNomeBiglCan" name="nomeBigl" onChange="trovaDatiBiglCan(this)">
									<option value="scegliNome" selected="selected">Scegli l'elemento da rimuovere</option>
									<jsp:include page="../admin/getNomiTariffe"/>
								</select></td>
							</tr>
							<tr>
								<td><label for="costoBigl">Costo</label></td>
								<td><input type="text" id="costoBiglCan" name="costoBigl" disabled="disabled"></input></td>
							</tr>
							<tr>
								<td><label for="in3DBigl">In 3D</label></td>
								<td><input type="checkbox" id="in3DBiglCan" name="in3DBigl" disabled="disabled"></td>
							</tr>
							<tr>
								<td colspan="2" class="center">
									<input id="submitCancellazione" type="submit" value="Rimuovi" disabled="disabled"></input>
								</td>
							</tr>
						</table>
					</form>
					
					
				</div>
				
			</div>
		</div>
		
	</body>
</html>
